﻿using Anley.DomainDrivenDesign.Contract.DependencyInjection;

namespace Anley.DomainDrivenDesign.Contract.Authorization;

/// <summary>
/// 当前用户接口
/// </summary>
public interface ICurrentUser
    : IScopedAutoInject
{
    /// <summary>
    /// 标识
    /// </summary>
    string Id { get; set; }

    /// <summary>
    /// 头像
    /// </summary>
    string? Avatar { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    string Name { get; set; }

    /// <summary>
    /// 有效期时间戳
    /// </summary>
    long ExpiredTime { get; set; }
}